import http from "../index";

const config = {headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }};

export const types = () => http.post("/mgr/typeList", null)
export const articleList = params => http.get("/mp/articles", { params })
export const articleDel = params => http.delete(`/mp/articles/${params}`)

export const articleDetail = params => http.get(`/mp/articles/${params}`)


export const articleAdd = params => http.post(`/mgr/addAgreement`, params, config)
export const articleEdit = params => http.post(`/mgr/updateAgreement`, params, config)
